package com.yc.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yc.bean.UserTestAnswer;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface UserTestAnswerDao extends BaseMapper<UserTestAnswer> {
    
    /**
     * 根据记录ID查询所有答题详情
     */
    @Select("SELECT * FROM userTestAnswers " +
            "WHERE recordId = #{recordId} " +
            "ORDER BY questionIndex ASC")
    List<UserTestAnswer> selectByRecordId(@Param("recordId") Long recordId);
} 